package com.shtel.bss.saas.tenant.service;

import com.github.pagehelper.PageInfo;
import com.shtel.bss.saas.core.data.common.service.IDataService;
import com.shtel.bss.saas.tenant.bo.SysGlobalAuthBo;

import java.util.List;

/**
 * 租户权限表服务
 * @author xiezhiwei 2020-02-05 22:02
 */
public interface ISysTenantAuthJoinService extends IDataService {
    /**
     * 更新租户已有的基础权限
     * @param authIds
     * @param tenantId
     */
    void updateSysTenantAuth(List<Long> authIds,Long tenantId,Long createUserId);

    /**
     * 查询租户对应的权限信息
     * @param tenantId
     * @param pageSize
     * @param pageNum
     * @return
     */
    PageInfo<SysGlobalAuthBo> querySysGlobalAuthListByTenantId(Long tenantId, int pageSize, int pageNum);


    List<SysGlobalAuthBo> querySysGlobalAuthListByTenantId(Long tenantId);

    void deleteSysTenantAuth(List<Long> tenantIds, Long authId);
}
